package com.wgzx.modbus.entity;

import com.wgzx.modbus.constant.FunctionCode;

public abstract class PduData extends PduFunc {

    /**
     * 起始地址
     */
    protected int address;

    /**
     * 数据数量
     */
    protected int value;

    public PduData(FunctionCode funcCode, int address, int quantity) {
        super(funcCode);
        this.address = address;
        this.value = quantity;
    }
}
